package cn.hs.lyxf.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author mzy
 * @since 2022-12-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_signed_order")
public class SignedOrder extends Model<SignedOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 电话
     */
    @TableField("user_phone")
    private String userPhone;
    /**
     * 公司
     */
    @TableField("company_name")
    private String companyName;
    /**
     * 公司面积
     */
    @TableField("company_dimension")
    private String companyDimension;
    /**
     * 总价
     */
    @TableField("total_price")
    private BigDecimal totalPrice;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 状态
     */
    private Integer state;

    /**
     * 负责人id
     *
     * @return
     */
    @TableField("emp_id")
    private Long empId;

    /**
     * 完成时间
     *
     * @return
     */
    @TableField("finish_time")
    private Date finishTime;

    /**
     * 签约年限
     *
     * @return
     */
    @TableField("signed_year")
    private Integer signedYear;
    /**
     * 公司id
     */
    @TableField("company_id")
    private Long companyId;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
